const koa = require('koa')
const cors = require('koa2-cors')
const bodyparser = require('koa-bodyparser')
const app = new koa()
const router = require('koa-router')()
const client = require('./client/index')
app.use(cors())
app.use(bodyparser())
router.use('/client', client)

app.use(router.routes())
app.listen(800, () => {
  console.log('Server is running on port 800!')
})
